package multithreading.homework.Money;

public class Text extends Thread {
    private User Acc;//设置一个账户类
    public Text(User Acc, String name) {
        //要输入一个账户给账户类相当于创建了一个账户，然后把名字给父类名字相当于初始化名字
        super(name);
        this.Acc = Acc;
    }

    @Override
    public void run() {
        Acc.get(100000);
    }
}